<?php

namespace App\Models\Reservation;

use App\User;
use Illuminate\Database\Eloquent\Model;

class ReservationDoctor extends Model
{
    public $timestamps = false;

    protected $table = 'st_reservation_doctors';

    public function doctor()
    {
        return $this->belongsTo(User::class);
    }

    public function workload()
    {
        return $this->hasMany(Reservation::class, 'doctor_id', 'doctor_id');
    }
}
